home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 …ember: Reference Library / Dev.CD Dec 97 RL.toast / What's New / Tool Chest / Testing & Debugging / Virtual User / Examples / External Tool Templates / CPlus Tool Template / StandardServices.h < prev    next >
Encoding:
Text File  |  1997-10-15  |  2.1 KB  |  65 lines  |  [TEXT/MPS ]

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. //        EchoService.h
  4. //    
  5. //        Revisions:
  6. //            10/30/94    Stuart Russell    created
  7. //
  8. ///////////////////////////////////////////////////////////////////////////////
  9.  
  10. #ifndef __StandardServices__
  11. #define __StandardServices__
  12.  
  13. #ifndef        __Service__
  14. #include        "Service.h"
  15. #endif
  16.  
  17. #ifndef        __LIST__
  18. #include        "List.h"
  19. #endif
  20.  
  21. /*
  22. #ifndef     __PASCALSTRING__
  23. #include         "PascalString.h"
  24. #endif
  25. */
  26.  
  27. //—————————————————————————————————————————————————————————————————————————————————————
  28. //    EchoThreadService class -    implements a service for V.U. to utilize
  29. //—————————————————————————————————————————————————————————————————————————————————————
  30. class EchoThreadService : public ThreadedService
  31. {
  32. public:        //———————————————————————    public member functions
  33.                     EchoThreadService(void);                        // constructor
  34. virtual                ~EchoThreadService(void);                        // destructor
  35. virtual    OSErr        ProcessRequest( Request* pReq );    // Implements the Request
  36. };
  37.  
  38. //—————————————————————————————————————————————————————————————————————————————————————
  39. //    EchoNoThreadService class -    implements a service for V.U. to utilize
  40. //—————————————————————————————————————————————————————————————————————————————————————
  41. class EchoNoThreadService : public Service
  42. {
  43. public:        //———————————————————————    public member functions
  44.                     EchoNoThreadService(void);                        // constructor
  45. virtual                ~EchoNoThreadService(void);                        // destructor
  46. virtual    OSErr        ProcessRequest( Request* pReq );    // Implements the Request
  47. };
  48.  
  49.  
  50. //—————————————————————————————————————————————————————————————————————————————————————
  51. //    SetSleepTicksService class -    implements a service for V.U. to utilize
  52. //—————————————————————————————————————————————————————————————————————————————————————
  53. class SetSleepTicksService : public Service
  54. {
  55. public:        //———————————————————————    public member functions
  56.                     SetSleepTicksService(void);                        // constructor
  57. virtual                ~SetSleepTicksService(void);                    // destructor
  58. virtual    OSErr        ProcessRequest( Request* pReq );    // Implements the Request
  59. };
  60.  
  61.  
  62.  
  63. #endif __StandardServices__
  64.  
  65.